package com.example.myproject.log;

import org.apache.commons.lang3.time.StopWatch;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/3/1.
 */
public class LogTest
{
    public static void main(String[] args) throws  Exception{

        List<StopWatch> list = new ArrayList<StopWatch>();
        for(StopWatch st : list){
            System.out.println("sds:"+st);
        }

        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        Thread.sleep(1000);
        stopWatch.stop();
        System.out.println("stop :"+stopWatch.getTime());
        Thread.sleep(1000);
        System.out.println("stop2 :"+stopWatch.getTime());
 }
}
